package com.mini.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

/**
 * @author zl
 * @version 1.0
 * @date Created in 2020/2/5
 */
@Data
@ApiModel("成员数据查询条件")
public class MemberDataCondition extends BaseCondition {

    private static final long serialVersionUID = 1190528293083541347L;

    @ApiModelProperty(value = "课程id")
    private String lessonId;

    @ApiModelProperty(value = "订单时间-开始日期")
    private String orderDateStart;

    @ApiModelProperty(value = "订单时间-结束日期")
    private String orderDateEnd;

    @ApiModelProperty(value = "组", hidden = true)
    private Set<Integer> groupIds;

    @ApiModelProperty(value = "专员")
    private Set<Integer> userIds;

    @ApiModelProperty(value = "查询维度：0-组，1-人")
    private Integer selectType = 0;

    @ApiModelProperty(value = "是否按天：0-不按天，1-按天")
    private Integer dayType = 0;

    @ApiModelProperty(value = "是否是导出，内部使用")
    private Boolean isExcel = false;

    @ApiModelProperty(value = "查组id是null的：", hidden = true)
    private Integer groupNull = 0;

    @ApiModelProperty(value = "组织")
    private Set<Long> deptIds;

    @ApiModelProperty(value = "登录用户id")
    private Long userId;

    public enum selectType {

        GROUP(0),
        USER(1),
        ;
        public final int code;

        selectType(Integer code) {
            this.code = code;
        }
    }

}
